SceneManager.setTileId = function(x, y, tileId){
    for (let i = 0; i < x.length; i++) {
        SceneManager._scene._spriteset._tilemap._mapData[(0*$dataMap.height + y[i])*$dataMap.width+x[i]] = tileId[i];
        SceneManager._scene._spriteset._tilemap._mapData[(5*$dataMap.height + y[i])*$dataMap.width+x[i]] = 1;
      }
}

SceneManager.tileId = function(x, y){
    let tileId = [];
    for (let i = 0; i < x.length; i++) {
        tileId.push(SceneManager._scene._spriteset._tilemap._mapData[(0*$dataMap.height + y[i])*$dataMap.width+x[i]]);
      }
    return tileId;
}

// 判断是否是标题画面的游戏设置界面
// 在以下地方变更值：Scene_Load.prototype.onLoadSuccess，Scene_Title.prototype.commandNewGame，Scene_Title.prototype.start
SceneManager.isTitleOptions = function () {
  return SceneManager._isTitleOptions;
};